package inventoryServe.service.impl;


import inventoryServe.mapper.RoleMapper;
import inventoryServe.po.Role;
import inventoryServe.service.RoleService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class RoleServiceImpl  implements RoleService {
    // 注解注入
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> allRole() {
        return this.roleMapper.allRole();
    }
}
